package com.wangping;

public class StringUtils {

	//if index = -1 do nothing
	public static String removeCharFromString(String str, int index){
		if(index != -1 && index < str.length()){
			if((index + 1) < str.length()){
				str = str.substring(0, index) + str.substring(index+1);
			}else{
				str = str.substring(0, index);
			}
		}
		return str;
	}

}
